package com.qlm.log;

import org.slf4j.LoggerFactory;

import com.jfinal.log.Log;

public class Logger extends Log {
	private org.slf4j.Logger log;

	public Logger(Class<?> clazz) {
		log = LoggerFactory.getLogger(clazz);
	}

	public Logger(String name) {
		log = LoggerFactory.getLogger(name);
	}

	@Override
	public void debug(String message) {
		log.debug(message);
	}

	@Override
	public void debug(String message, Throwable t) {
		log.debug(message, t);

	}

	@Override
	public void info(String message) {
		log.info(message);

	}

	@Override
	public void info(String message, Throwable t) {
		log.info(message, t);

	}

	@Override
	public void warn(String message) {
		log.warn(message);

	}

	@Override
	public void warn(String message, Throwable t) {
		log.warn(message, t);

	}

	@Override
	public void error(String message) {
		log.error(message);

	}

	@Override
	public void error(String message, Throwable t) {
		log.error(message, t);

	}

	@Override
	public void fatal(String message) {

	}

	@Override
	public void fatal(String message, Throwable t) {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean isDebugEnabled() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean isInfoEnabled() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean isWarnEnabled() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean isErrorEnabled() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public boolean isFatalEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

}
